﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005DF RID: 1503
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FormulaBuffTypeInfo : IMessage<FormulaBuffTypeInfo>, IMessage, IEquatable<FormulaBuffTypeInfo>, IDeepCloneable<FormulaBuffTypeInfo>, IBufferMessage
	{
		// Token: 0x1700134A RID: 4938
		// (get) Token: 0x060043A4 RID: 17316 RVA: 0x000B8DB4 File Offset: 0x000B6FB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FormulaBuffTypeInfo> Parser
		{
			get
			{
				return FormulaBuffTypeInfo._parser;
			}
		}

		// Token: 0x1700134B RID: 4939
		// (get) Token: 0x060043A5 RID: 17317 RVA: 0x000B8DBB File Offset: 0x000B6FBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FormulaBuffTypeInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700134C RID: 4940
		// (get) Token: 0x060043A6 RID: 17318 RVA: 0x000B8DCD File Offset: 0x000B6FCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FormulaBuffTypeInfo.Descriptor;
			}
		}

		// Token: 0x060043A7 RID: 17319 RVA: 0x000B8DD4 File Offset: 0x000B6FD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaBuffTypeInfo()
		{
		}

		// Token: 0x060043A8 RID: 17320 RVA: 0x000B8DDC File Offset: 0x000B6FDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaBuffTypeInfo(FormulaBuffTypeInfo other) : this()
		{
			this.formulaBuffNum_ = other.formulaBuffNum_;
			this.key_ = other.key_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060043A9 RID: 17321 RVA: 0x000B8E0D File Offset: 0x000B700D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaBuffTypeInfo Clone()
		{
			return new FormulaBuffTypeInfo(this);
		}

		// Token: 0x1700134D RID: 4941
		// (get) Token: 0x060043AA RID: 17322 RVA: 0x000B8E15 File Offset: 0x000B7015
		// (set) Token: 0x060043AB RID: 17323 RVA: 0x000B8E1D File Offset: 0x000B701D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int FormulaBuffNum
		{
			get
			{
				return this.formulaBuffNum_;
			}
			set
			{
				this.formulaBuffNum_ = value;
			}
		}

		// Token: 0x1700134E RID: 4942
		// (get) Token: 0x060043AC RID: 17324 RVA: 0x000B8E26 File Offset: 0x000B7026
		// (set) Token: 0x060043AD RID: 17325 RVA: 0x000B8E2E File Offset: 0x000B702E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Key
		{
			get
			{
				return this.key_;
			}
			set
			{
				this.key_ = value;
			}
		}

		// Token: 0x060043AE RID: 17326 RVA: 0x000B8E37 File Offset: 0x000B7037
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FormulaBuffTypeInfo);
		}

		// Token: 0x060043AF RID: 17327 RVA: 0x000B8E45 File Offset: 0x000B7045
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FormulaBuffTypeInfo other)
		{
			return other != null && (other == this || (this.FormulaBuffNum == other.FormulaBuffNum && this.Key == other.Key && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060043B0 RID: 17328 RVA: 0x000B8E84 File Offset: 0x000B7084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FormulaBuffNum != 0)
			{
				num ^= this.FormulaBuffNum.GetHashCode();
			}
			if (this.Key != 0U)
			{
				num ^= this.Key.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060043B1 RID: 17329 RVA: 0x000B8EDC File Offset: 0x000B70DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060043B2 RID: 17330 RVA: 0x000B8EE4 File Offset: 0x000B70E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060043B3 RID: 17331 RVA: 0x000B8EF0 File Offset: 0x000B70F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FormulaBuffNum != 0)
			{
				output.WriteRawTag(16);
				output.WriteInt32(this.FormulaBuffNum);
			}
			if (this.Key != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Key);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060043B4 RID: 17332 RVA: 0x000B8F4C File Offset: 0x000B714C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FormulaBuffNum != 0)
			{
				num += 1 + CodedOutputStream.ComputeInt32Size(this.FormulaBuffNum);
			}
			if (this.Key != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Key);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060043B5 RID: 17333 RVA: 0x000B8FA4 File Offset: 0x000B71A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FormulaBuffTypeInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FormulaBuffNum != 0)
			{
				this.FormulaBuffNum = other.FormulaBuffNum;
			}
			if (other.Key != 0U)
			{
				this.Key = other.Key;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060043B6 RID: 17334 RVA: 0x000B8FF4 File Offset: 0x000B71F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060043B7 RID: 17335 RVA: 0x000B9000 File Offset: 0x000B7200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Key = input.ReadUInt32();
					}
				}
				else
				{
					this.FormulaBuffNum = input.ReadInt32();
				}
			}
		}

		// Token: 0x04001AA3 RID: 6819
		private static readonly MessageParser<FormulaBuffTypeInfo> _parser = new MessageParser<FormulaBuffTypeInfo>(() => new FormulaBuffTypeInfo());

		// Token: 0x04001AA4 RID: 6820
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001AA5 RID: 6821
		public const int FormulaBuffNumFieldNumber = 2;

		// Token: 0x04001AA6 RID: 6822
		private int formulaBuffNum_;

		// Token: 0x04001AA7 RID: 6823
		public const int KeyFieldNumber = 6;

		// Token: 0x04001AA8 RID: 6824
		private uint key_;
	}
}
